<?php
				require('../security/admin_and_advanced_only.php');
				switch($security)
					{
					case PASS:
					echo
					"<p class='normaltext'>Attached file:
					<select name='filetype' id='filetype'>";
						if(isset($edit_result[filetype]))
							{
							echo"<option value='$edit_result[filetype]'>$edit_result[filetype]</option>";
							}
						echo
						"<option value='No File'>No File</option>
						<option value='Normal File'>Normal File</option>
						<option value='Secure File'>Secure File</option>
					</select>
					<select name='file' id='file'>";
						if(isset($edit_result[file]))
							{
							echo"<option value='$edit_result[file]'>$edit_result[file]</option>";
							}
						echo
						"<option value='No File'>No File</option>
						<option value=''>Normal Files A-Z: (Below)</option>";
						$filesdirectory=opendir("../gmslfilemanager/files");
						while(false!==($file=readdir($filesdirectory)))
							{
							echo"<option value='$file\n'>$file\n</option>";
							}
						closedir($filesdirectory);
						echo "<option value=''>Secure Files A-Z: (Below)</option>";
						$sfilesdirectory=opendir("../gmslfilemanager/sfiles");
						while(false!==($sfile=readdir($sfilesdirectory)))
							{
							echo"<option value='$sfile\n'>$sfile\n</option>";
							}
						closedir($sfilesdirectory);
					echo
					"</select>
					<a class='normaltext' href='../gmslfilemanager/upload.php' target='blank'>Upload a file now</a>
					<a class='normaltext' href='../gmslfilemanager/supload.php' target='blank'>Upload a secure file now</a></p>";
					}
?>
